package com.ewzj.bigdata.app;

/**
 * Author:zhangjing
 * Time:2018/1/26  上午10:53
 * Name: this is ApiException
 * Email:zhangjingworkmol@163.com
 */
    /**
     *
     * 后台服务器抛出的api异常
     * */
public class ApiException extends RuntimeException{
    private String errormsg;
    private int code;

    public ApiException(String errormsg, int code) {
        super(errormsg);
        this.errormsg = errormsg;
        this.code = code;
    }

        public String getErrormsg() {
            return errormsg;
        }

        public void setErrormsg(String errormsg) {
            this.errormsg = errormsg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }
